import request from '@/utils/request';
import { other } from './prefix';

const eventManage = {
  // 查询大事记列表
  getEvent(params) {
    return request.get(other + '/art_event', { params });
  },
  // 创建大事记
  setEvent(params) {
    return request.post(other + '/art_event', params);
  },
  // 更新大事记
  updEvent(id, params) {
    return request.post(other + '/art_event/' + id, params);
  },
  // 删除大事记
  delEvent(id) {
    return request.delete(other + '/art_event/' + id);
  },
};

export default eventManage;
